#!/usr/bin/env python
# -*- encoding: UTF-8 -*-
from __future__ import print_function

# 导入数据库
from .. import db
from . import proxyManger

# 运动模型，用来控制Nao的运动
class Motion(db.Model):
    __tablename__ = "motions"
    id = db.Column(db.Integer,primary_key=True)
    nao_id = db.Column(db.Integer,db.ForeignKey("naos.id"))
    
    def __init__(self,nao):
        from .Nao import Nao
        assert isinstance(nao,Nao)
        self.nao=nao
        self.nao_id=nao.id

    def __repr__(self):
       return "<Motion('%d')>" % (self.id)

    def connect(self):
        pass

    def stop(self):
        pass